package com.lzs.kucun.mapper;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.lzs.entity.*;

import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author wpy
 * @since 2020-11-25
 */
public interface StockMapper extends BaseMapper<Stock> {
    int updateStockQuantity(@Param("quantity") Integer quantity, @Param("wid") Long wid, @Param("commodityid") Long commodityid, @Param("locatorid") Long locatorid);
    List<Stock> selectStockInfo(@Param("warehouseid") Long warehouseid, @Param("type") String type);
    User selectUser(Long userid);
    Locator selectLocator(String locatorcode);
    Commodity selectCommodity(String commoditycode);
    Warehouse selectWarehouse(Long warehouseid);
}
